package com.admin.bank.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.client.model.pojo.bank.Deposit;
import com.client.model.vo.common.Result;

import java.math.BigDecimal;

/**
* @author liuwenju
* @description 针对表【deposit】的数据库操作Service
* @createDate 2024-04-01 20:55:27
*/
public interface DepositService extends IService<Deposit> {

    /**
     * 返回给页面需要的定期，存款时长（利率）以及存款金额
     * @return
     */
    Result findDeposToType(String bankCard);

    Result currentTofixed(String bankCard, Long did, BigDecimal price);

    Result fixedToCurrent(String bankCard,Long depositid, BigDecimal price);

    Result confirm(String bankCard, Long did, BigDecimal price,String payPassword);

    Result confirmfixed(String bankCard, Long depositid, BigDecimal price, String payPassword);

    Result findDeposToFxiedType(String bankCard);
}
